package com.jinmdz.fmis.dao.dao;

import com.jinmdz.fmis.dao.dao.provider.CremationTimeSegmentProvider;
import com.jinmdz.fmis.dao.model.cremation.AppointmentTimeSegmentCountItem;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.ArrayList;
import java.util.Date;

/**
 * 火化预约时间段
 *
 * @author LiCongLu
 * @date 2020-03-08 15:51
 */
public interface CremationTimeSegmentDao {

    /**
     * 按照获取日期，查询火化预约时间预约情况
     *
     * @param furnaceTypeCode 火化炉类型
     * @param appointmentDate 火化预约日期
     * @return
     * @author LiCongLu
     * @date 2020-03-08 15:57
     */
    @SelectProvider(type = CremationTimeSegmentProvider.class, method = "listAppointmentTimeSegmentCountByDate")
    ArrayList<AppointmentTimeSegmentCountItem> listAppointmentTimeSegmentCountByDate(@Param("furnaceTypeCode") Integer furnaceTypeCode, @Param("appointmentDate") Date appointmentDate);
}
